package cn.taofuxn.sale.service.data.base;

/**
 * ProjectName : GeekSaleSystem
 * PackageName : cn.taofuxn.sale.service.data.base
 * Created by Wong
 * Date: 2018/4/2
 * Time: 20:40
 */
public enum ResultCodeType {
	
	/**
	 * 常规操作
	 */
	SUCCESS(0,"调用成功"),
	ERROR(0,"调用失败"),
	
	/**
	 * 错误码分类
	 */
	GOODS_NOT_FOUND(1,"该商品信息没找到"),
	ORDER_NOT_FOUND(2,"该订单信息找不到" ),
	NOT_FOUND_PRODUCER(3,"找不到相应的供应商信息" ),
	PRODUCER_NAME_DUPLICATE(4,"厂商名称重复" ),
	CONSUMER_NAME_DUPLICATE(5,"顾客名称重复" ),
	NOT_FOUND_CONSUMER(6,"找不到这个顾客" );
	
	private int code;
	private String msg;
	
	ResultCodeType(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public int getCode() {
		return code;
	}
	
	public void setCode(final int vCode) {
		code = vCode;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(final String vMsg) {
		msg = vMsg;
	}
}
